<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/index :: head"></head>
<body class="mainbody">
<div th:replace="common/index :: location('祝福管理')"></div>
<!--<div th:replace="common/index :: toolbar"></div>-->
<form id="searchForm" method="GET" th:object="${search}">
    <input type="hidden" name="page" th:value="${page.number+1}" />
    <input type="hidden" name="size" th:value="${page.size}" />
    <div class="det-list clearfix">
        <div class="group btm">
            <div class="control">
                <div class="title">制作者</div>
                <input class="input normal" type="text" th:field="*{fromClient.nickName}"/>
            </div>
        </div>
        <div class="group searchbtn">
            <div class="btn-list">
                <input type="submit" value="查询" class="btn" />
                <input type="reset" value="重置" class="btn yellow" />
            </div>
        </div>
        <div style="clear:both;"></div>
    </div>
</form>

<table id="list">
    <thead>
    <tr>
        <th width="200">操作</th>
        <th width="100">制作者</th>
        <th width="100">祝福语</th>
        <th width="100">图片</th>
        <th width="100">音频</th>
        <th width="100">视频</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="obj : ${page.content}" th:object="${obj}">
        <td><a>查看</a></td>
        <td th:text="*{fromClient.name}"></td>
        <td th:text="*{bText}"></td>
        <td th:text="*{bImage}"></td>
        <td th:text="*{bAudio}"></td>
        <td th:text="*{bVideo}"></td>
    </tr>
    </tbody>
</table>

<div th:replace="common/index :: pagination(${page})"></div>
<script type="text/javascript" th:replace="common/index :: indexscript"></script>
<script th:inline="javascript">
    function deleteObj(id){
        if(confirm("确认删除?")) location.href=id+"/delete";
    }
</script>
</body>
</html>